package com.example.springboot.mapper;

import com.example.springboot.entity.ForumPostLike;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ForumPostLikeMapper {


    void insertLike(ForumPostLike like);


    void deleteLike(@Param("postId") Integer postId, @Param("userId") Integer userId);


    ForumPostLike selectLike(@Param("postId") Integer postId, @Param("userId") Integer userId);
    /**
     * 根据用户 ID 获取点赞列表
     */
    List<ForumPostLike> findByUserId(@Param("userId") Integer userId);
}